import request from '@/utils/request'

// 查询点赞记录列表
export function listLiked_record(query) {
  return request({
    url: '/study/liked_record/list',
    method: 'get',
    params: query
  })
}

// 查询点赞记录详细
export function getLiked_record(id) {
  return request({
    url: '/study/liked_record/' + id,
    method: 'get'
  })
}

// 新增点赞记录
export function addLiked_record(data) {
  return request({
    url: '/study/liked_record',
    method: 'post',
    data: data
  })
}

// 修改点赞记录
export function updateLiked_record(data) {
  return request({
    url: '/study/liked_record',
    method: 'put',
    data: data
  })
}

// 删除点赞记录
export function delLiked_record(id) {
  return request({
    url: '/study/liked_record/' + id,
    method: 'delete'
  })
}
